Visual Basic (Declaration) | |
---|---|
Overloads Function ShowDialogAsync(Of T)( _ ByVal content As Object, _ ByVal defaultButton As T, _ ByVal cancelButton As T, _ ByVal dialogButtons As IEnumerable(Of T), _ Optional ByVal title As String _ ) As Task(Of T) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As IDialogManager Dim content As Object Dim defaultButton As T Dim cancelButton As T Dim dialogButtons As IEnumerable(Of T) Dim title As String Dim value As Task(Of T) value = instance.ShowDialogAsync(Of T)(content, defaultButton, cancelButton, dialogButtons, title) |
C# | |
---|---|
Task<T> ShowDialogAsync<T>( object content, T defaultButton, T cancelButton, IEnumerable<T> dialogButtons, string title ) |
C++/CLI | |
---|---|
Task<T^>^ ShowDialogAsyncgeneric<typename T> ( Object^ content, T^ defaultButton, T^ cancelButton, IEnumerable<T^>^ dialogButtons, String^ title ) |
Parameters
- content
- The custom view model to host in the dialog.
- defaultButton
- Specifies the default button. The Enter key will be mapped to this button.
- cancelButton
- Specifies the designated cancel button. If the user clicks this button, the Task will be marked as cancelled.
- dialogButtons
- A value that indicates the button or buttons to display. See DialogButtons for predefined button sets.
- title
- Optional title of the dialog.
Type Parameters
- T
- User-defined dialog result type. In most cases System.Object.ToString is used as the button content.
Return Value
The dialog result.Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family